<!--实习记录详情页-->
<!DOCTYPE html>
<html class="base_gary_bg_color">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>我的</title>
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../../css/weui.min.css">
		<link rel="stylesheet" href="../../css/base.css">
	</head>
	<style type="text/css">
		.changeState .bottom_btn {
			position: fixed;
			width: 100%;
			height: 40px;
			bottom: 0px;
			background-color: #EFF0F1;
			overflow: hidden;
		}
	</style>
	<body >
		<div class="base_style_color" id='BarAppearance' style="height: 22px;width: 100%; position:fixed; left: 0px;top:0px;z-index: 998" ></div>
			<div class="base_navigation_bar base_style_color base_navigation_item_bar" style="position: fixed;left: 0px;top: 20px;">
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span>实习记录详情</span>
			<a class="base_right_item base_hide_item" href="#"> </a>
		</div>
		<div class="base_content_div base_content_font top_2"  >
			<div class="ReviewWeekly_div">
				<div class="applyjob ">
					<form class="mui-input-group font14 base_grey">
						<div class="mui-input-row">
							<label class="base_title_font base_dark_grey">实习课程信息</label>
						</div>
						<div id="learn_div"></div>
					</form>
				</div>
			</div>
			<div class="top_15  " id="job_proactice"></div>
			<div class="changeState ">
				<div class="bottom_btn ">
					<div class="mui-input-row">
						<label class="base_title_font base_dark_grey">总成绩</label>
						<span  class="stuname"  style="line-height: 40px;  color: red;"  id="score">90</span>分
					</div>
				</div>
			</div>
	</body>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script src="../../script/mui.min.js"></script>
	<script src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript">
		var id = '';
		var type = '';
		apiready = function() {
			var pageParam = api.pageParam;
			id = parseInt(pageParam.id);
			loadWeeklyData();
		};
		//获取实习记录详情数据
		function loadWeeklyData() {
			var param = {
				planid : id,
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjid'),
			};
			cfnetppPOST(urlLstInfo, param, true, function(data, status) {
				//								alert(JSON.stringify(data));
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						if (list != null) {
							$("#score").html(list.score);
							//score成绩
							//岗位信息
							var listjob = list.sxgwinfo;
							if (listjob != null && listjob.constructor == Array && listjob.length > 0) {
								setjobs(listjob, listjob.length);
							}
							//学习信息
							var listlenrn = list.course;
							if (listlenrn != null && listlenrn.constructor == Array && listlenrn.length > 0) {
								setlearn(listlenrn, listlenrn.length);
							}
							//						//实习信息
							//						var listpractice=list.statusinfo;
							//					    if (listpractice != null && listpractice.constructor == Array && listpractice.length > 0){
							//						 setpractice(listpractice,listpractice.length);
							//                       }
						} else {
							api.toast({
								msg : '获取数据失败',
								duration : 2000,
								location : 'bottom'
							});
						}
					} else {
						api.toast({
							msg : '获取数据失败',
							duration : 2000,
							location : 'bottom'
						});
					}
				} else {
					api.toast({
						msg : '网络连接失败',
						duration : 2000,
						location : 'bottom'
					});
				}
			});
		}

		function setjobs(data, len) {
			var str_job = '';
			for (var i = 0; i < len; i++) {
				var list = data[i];
				//	     alert(JSON.stringify(list.names));
				var str = '<div class="ReviewWeekly_div " style="padding-top: 10px;">' + '<div class="applyjob ">' + '<form class="mui-input-group font14 base_grey">' + '<div class="mui-input-row">' + '<label class="base_title_font base_dark_grey">实习岗位信息</label></div>' + '<div class="mui-input-row padding_left_10">' + '<label >实习单位</label>' + '<span  class="stuname"  id="sxcompany">' + notTen(list.names) + '</span></div>' + '<div class="mui-input-row padding_left_10">' + '<label >实习岗位</label>' + '<span  class="stuname"  id="sxwork">' + isStringNull(list.titles) + '</span></div>' + '<div class="mui-input-row  padding_left_10">' + '<label >实习地址</label>' + '<span class="stuname" id="sxaddres">' + isStringNull(list.site) + '</span></div>' + '<div class="mui-input-row  padding_left_10">' + '<label >老师联系方式</label>' + '<span class="stuname" id="lstel">' + isStringNull(list.phone) + '</span></div>' + '<div class="mui-input-row padding_left_10">' + '<label >岗位领导电话</label>' + '<span class="stuname" id="sxtel">' + isStringNull(list.mobile) + '</span></div>' + '<div class="mui-input-row padding_left_10">' + '<label >实习时间</label>' + '<span class="stuname" id="sxtel">' + getLocalTime(isStringNull(list.starttime)) + "~" + getLocalTime(isStringNull(list.endtime)) + '</span></div>' + '</form></div></div>' + '<div class="ReviewWeekly_div bottom_50" style="padding-top: 10px;"><div class="applyjob ">' + '<form class="mui-input-group font14 base_grey">' + '<div class="mui-input-row">' + '<label class="base_title_font base_dark_grey">实习状况信息</label></div>' + '<div class="mui-input-row padding_left_10">' + '<label >已签到次数</label>' + '<span class="stuname" id="sign_num">' + isStringNull(list.signnum) + '次</span></div>' + '<div class="mui-input-row padding_left_10" id="rb">' + '<label >实习日报</label>' + '<span class="stuname" id="sxWeekly">' + isStringNull(list.rbnum) + '篇</span></div>' + '<div class="mui-input-row padding_left_10" id="zb">' + '<label >实习周报</label>' + '<span class="stuname" id="sxWeekly">' + isStringNull(list.zbnum) + '篇</span></div>' + '<div class="mui-input-row padding_left_10">' + '<label >实习月报</label>' + '<span  class="stuname"  id="sxMonth">' + isStringNull(list.ybnum) + '篇</span></div>' + '<div class="mui-input-row padding_left_10">' + '<label >企业师傅评分</label>' + '<span  class="stuname"  id="last_sign">' + isStringNull(list.masterscore) + '</span></div>' + '<div class="mui-input-row padding_left_10">' + '<label >指导老师评分</label>' + '<span  class="stuname"  id="last_sign">' + isStringNull(list.tea_score) + '</span></div>' + '</div></form></div></div>';
				;
				str_job = str_job + str;
			}
			$('#job_proactice').html(str_job);
		}

		function setlearn(data, len) {
			var str_learn = '';
			for (var i = 0; i < len; i++) {
				var list = data[i];
				var str = '<div class="mui-input-row padding_left_10">' + ' <label style="width: 80%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;" >' + isStringNull(list.coursename) + '</label>' + '<span class="stuname" id="th_name"> ' + isStringNull(list.examscore) + '分</span></div>';
				str_learn = str_learn + str;
			}
			$('#learn_div').html(str_learn);
		}

		function backClick() {
			api.closeWin();
		}
	</script>
</html>